package com.ctshk.rpc.air.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * <p>
 * 产品库存售卖记录
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_air_product_sale_record")
@ApiModel(value="AirProductSaleRecord对象", description="产品库存售卖记录")
public class AirProductSaleRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "售卖日期")
    private LocalDate salesDate;

    @ApiModelProperty(value = "已售数量")
    private Integer soldNumber;

    @ApiModelProperty(value = "1:自营 2:代理商 3:官方渠道 4:第三方")
    private Integer channel;

    @ApiModelProperty(value = "自定Id")
    private Long customId;

    @ApiModelProperty(value = "自定义名称")
    private String customName;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
